﻿@model JRFinances.ViewModels.RealTransactions.SellRealTransactionViewModel
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Sprzedaj prawdziwa transakcje</legend>
        <div class="display-label">
            Spolka</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.CompanyName)
        </div>
        <div class="display-label">
            Obecnie posiadane</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.MaxVolume)
        </div>
        <div class="editor-label">
            Data</div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Date)
            @Html.ValidationMessageFor(model => model.Date)
        </div>
        <div class="editor-label">
            Ilosc</div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Volume)
            @Html.ValidationMessageFor(model => model.Volume)
        </div>
        <div class="editor-label">
            Cena
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Price)
            @Html.ValidationMessageFor(model => model.Price)
        </div>
        @Html.HiddenFor(model => model.CompanyName)
        @Html.HiddenFor(model => model.MaxVolume)
        <p>
            <input type="submit" value="Sprzedaj" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Powrot do listy", "Index")
</div>

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script>
    $(function () {
        $("#Date").datepicker({ dateFormat: 'yy-mm-dd' });
    });
    </script>